package com.lingxu.base.common.encrypt;

import com.lingxu.base.common.util.SM2DbConnUtil;
import org.jasypt.encryption.StringEncryptor;

public class SM2StringEncryptor implements StringEncryptor {

    @Override
    public String encrypt(String message) {
        return SM2DbConnUtil.encrypt(message);
    }

    @Override
    public String decrypt(String encryptedMessage) {
        return SM2DbConnUtil.decrypt(encryptedMessage);
    }
}
